package com.it.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.it.reggie.entity.Employee;
import com.it.reggie.mapper.EmployeeMapper;
import com.it.reggie.service.EmployeeService;
import org.springframework.stereotype.Service;

@Service//交由spring容器进行管理//  mybatis-plus提供的规范，继承父类，实现父接口（EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService）
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {
//  例子：  @Autowired
//    private EmployeeService employeeService;//依赖循环，报错，自己依赖自己？？？
//  想要调用employeeService.方法()  ,可以这样写：this.方法()
}
